#!/bin/bash

##BBSL_AIC_random - Generates BBSL experiments where initial networks are generated at random, and only score used is AIC

for i in {1..5}
do
	#ALARM
	genexp -r bbsl-aic-net_alarm_500_perc30_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/alarm_500_perc30_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/alarm_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/alarm.eg -c VentLung
	
	genexp -r bbsl-aic-net_alarm_500_perc15_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/alarm_500_perc15_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/alarm_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/alarm.eg -c VentLung
	
	genexp -r bbsl-aic-net_alarm_500_perc5_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/alarm_500_perc5_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/alarm_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/alarm.eg -c VentLung
	
	genexp -r bbsl-aic-net_alarm_500_perc1_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/alarm_500_perc1_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/alarm_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/alarm.eg -c VentLung
	
	genexp -r bbsl-aic-net_alarm_1000_perc30_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/alarm_1000_perc30_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/alarm_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/alarm.eg -c VentLung
	
	genexp -r bbsl-aic-net_alarm_1000_perc15_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/alarm_1000_perc15_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/alarm_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/alarm.eg -c VentLung
	
	genexp -r bbsl-aic-net_alarm_1000_perc5_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/alarm_1000_perc5_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/alarm_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/alarm.eg -c VentLung
	
	genexp -r bbsl-aic-net_alarm_1000_perc1_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/alarm_1000_perc1_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/alarm_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/alarm.eg -c VentLung

	
	#HAILFINDER
	genexp -r bbsl-aic-net_hailfinder_500_perc30_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/hailfinder_500_perc30_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/hailfinder_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/hailfinder.eg -c LLIW
	
	genexp -r bbsl-aic-net_hailfinder_500_perc15_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/hailfinder_500_perc15_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/hailfinder_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/hailfinder.eg -c LLIW
	
	genexp -r bbsl-aic-net_hailfinder_500_perc5_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/hailfinder_500_perc5_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/hailfinder_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/hailfinder.eg -c LLIW
	
	genexp -r bbsl-aic-net_hailfinder_500_perc1_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/hailfinder_500_perc1_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/hailfinder_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/hailfinder.eg -c LLIW
	
	genexp -r bbsl-aic-net_hailfinder_1000_perc30_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/hailfinder_1000_perc30_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/hailfinder_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/hailfinder.eg -c LLIW
	
	genexp -r bbsl-aic-net_hailfinder_1000_perc15_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/hailfinder_1000_perc15_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/hailfinder_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/hailfinder.eg -c LLIW
	
	genexp -r bbsl-aic-net_hailfinder_1000_perc5_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/hailfinder_1000_perc5_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/hailfinder_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/hailfinder.eg -c LLIW
	
	genexp -r bbsl-aic-net_hailfinder_1000_perc1_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/hailfinder_1000_perc1_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/hailfinder_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/hailfinder.eg -c LLIW
	
	
	#CHILD
	genexp -r bbsl-aic-net_child_500_perc30_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/child_500_perc30_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/child_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/child.bif -c CO2
	
	genexp -r bbsl-aic-net_child_500_perc15_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/child_500_perc15_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/child_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/child.bif -c CO2
	
	genexp -r bbsl-aic-net_child_500_perc5_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/child_500_perc5_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/child_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/child.bif -c CO2
	
	genexp -r bbsl-aic-net_child_500_perc1_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/child_500_perc1_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/child_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/child.bif -c CO2
	
	genexp -r bbsl-aic-net_child_1000_perc30_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/child_1000_perc30_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/child_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/child.bif -c CO2
	
	genexp -r bbsl-aic-net_child_1000_perc15_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/child_1000_perc15_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/child_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/child.bif -c CO2
	
	genexp -r bbsl-aic-net_child_1000_perc5_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/child_1000_perc5_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/child_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/child.bif -c CO2
	
	genexp -r bbsl-aic-net_child_1000_perc1_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/child_1000_perc1_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/child_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/child.bif -c CO2
	
	
	#INSURANCE
	genexp -r bbsl-aic-net_insurance_500_perc30_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/insurance_500_perc30_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/insurance_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/insurance.bif -c SocioEcon
	
	genexp -r bbsl-aic-net_insurance_500_perc15_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/insurance_500_perc15_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/insurance_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/insurance.bif -c SocioEcon
	
	genexp -r bbsl-aic-net_insurance_500_perc5_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/insurance_500_perc5_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/insurance_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/insurance.bif -c SocioEcon
	
	genexp -r bbsl-aic-net_insurance_500_perc1_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/insurance_500_perc1_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/insurance_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/insurance.bif -c SocioEcon
	
	genexp -r bbsl-aic-net_insurance_1000_perc30_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/insurance_1000_perc30_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/insurance_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/insurance.bif -c SocioEcon
	
	genexp -r bbsl-aic-net_insurance_1000_perc15_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/insurance_1000_perc15_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/insurance_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/insurance.bif -c SocioEcon
	
	genexp -r bbsl-aic-net_insurance_1000_perc5_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/insurance_1000_perc5_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/insurance_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/insurance.bif -c SocioEcon
	
	genexp -r bbsl-aic-net_insurance_1000_perc1_net$i -f  ~/Desktop/bayes/trunk/experiments/BBSL_AIC_random/ -n 10 -d ~/Desktop/bayes/trunk/data/dataset/insurance_1000_perc1_missing_data.txt -m ~/Desktop/bayes/trunk/data/models/BBSL_AIC/ -s ~/Desktop/bayes/trunk/data/ini_structures/insurance_ini_structure_net$i.eg -t ~/Desktop/bayes/trunk/data/EncogBayesData/insurance.bif -c SocioEcon
	
done